home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / icons / dupicon.zip / DUPICON.DOC < prev    next >
Text File  |  1991-03-21  |  2KB  |  60 lines

  1.  
  2.                           Duplicate Icon Processor
  3.                     Copyright (c) 1991 by Keith Ledbetter
  4.  
  5.  
  6.  
  7.     DUPICON is a program that will go through a directory and find all
  8. exact matches of icon files.   I wrote this program because my Icon
  9. collection has grown to approximately 1800 icons, and trying to weed out
  10. all of the duplicates by hand is quite tedious.
  11.  
  12.  
  13.     The program was a "quickie", so I'll say up front that you are not
  14. going to be overwhelmed by beautiful screen displays <grin>, but it is
  15. functional and has been exhaustively tested.
  16.  
  17.  
  18.     DUPICON works only on THE CURRENT DEFAULT DIRECTORY, and can handle
  19. up to 3,192 icons in this version (someone tell me if they need for it
  20. to handle more).  So, what you want to do is to get all of your .ICO
  21. files into one directory.   If you have my "Supersonic Search Tool"
  22. program, you can easily accomplish this with these commands:
  23.  
  24.                  C:>  md c:\icons
  25.                  C:>  sst *.ico -d -c"copy &f c:\icons\*.*"
  26.  
  27.     Next, simply change to that directory and execute DUPICON.  The program
  28. will first ask you if you only want to preview the duplicates.  If you
  29. answer "Yes", DUPICON will do its normal processing except that it WILL NOT
  30. delete the duplicate icons -- it will only show their names to you.  If you
  31. answer "No", then DUPICON will go into its "search and delete" logic -- you
  32. will also be asked whether you want to be prompted or not before an Icon
  33. file is deleted.
  34.  
  35.  
  36.  
  37.  
  38. How it works
  39. ------------
  40.  
  41.     DUPICON first scans the current directory and builds a table of all
  42. .ICO files found.   Next, it reads each .ICO file and calculates a 16-bit
  43. CRC of each file.   Lastly, it goes through all .ICO files where the CRC
  44. matches and does an exact BYTE-for-BYTE compare to make sure that the two
  45. icons are exact matches.  If they are, you will be prompted to delete the
  46. second duplicate icon (if you asked DUPICON to prompt you).
  47.  
  48.  
  49.  
  50. That's All!
  51. -----------
  52.  
  53.     This program is a freebie, so use it and pass it to your friends as you
  54. see fit.  If you need to contact me, I can be reached at the following:
  55.  
  56.  
  57.               Electronic mail on GEnie     : ORION.MICRO
  58.                                  CompuServe: 72240,1221
  59.  
  60.